package pri.jz.keeper.ui.view

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.constraintlayout.compose.ConstraintLayout
import pri.jz.keeper.R

/**
 *Author by: JZ
 *Email: 2451756617@qq.com
 *PS:进应用使的加载界面
 */
@Composable
fun MainView() {
    ConstraintLayout(
        modifier = Modifier.fillMaxSize()
    ) {
        val (mainIcon) = createRefs()
        Image(
            painter = painterResource(R.drawable.icon_keeper),
            contentDescription = null,
            modifier = Modifier.constrainAs(mainIcon) {
                centerHorizontallyTo(parent)
                centerVerticallyTo(parent)
            }.size(250.dp,300.dp)
        )
    }
}
